<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
	        $table->engine = 'InnoDB';
            $table->increments('id')->comment('用户表，用户id');
            $table->string('name', 32)->comment('用户名');
	        $table->string('email', 64)->unique()->comment('用户邮箱');
	        $table->integer('phone')->unique()->comment('用户手机号');
	        $table->string('password', 255)->comment('用户密码');
	        $table->rememberToken()->comment('用户token');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}
